package com.hxd.mall.module.usercenter.message

import android.graphics.Color
import com.alibaba.android.arouter.facade.annotation.Route
import com.hxd.mall.R
import com.hxd.mall.base.BaseInjectActivity
import com.hxd.mall.constant.HxdConstantsRouterPath.PathUserCenter.path_user_center_message
import com.hxd.mall.module.usercenter.message.bean.MessageBean
import com.hxd.mall.utils.open.initRecyclerView
import crossoverone.statuslib.StatusUtil
import kotlinx.android.synthetic.main.activity_message_layout.*

/**
 * 消息列表页
 */
@Route(path = path_user_center_message)
class MessageActivity : BaseInjectActivity<IMessagePresenter>(), IMessageView {

    override fun attachLayoutRes(): Int = R.layout.activity_message_layout

    override fun initViews() {
        setTitleCommon(getString(R.string.message_center))
        messageList.initRecyclerView(
            MessageListAdapter(listOf(MessageBean(), MessageBean())).apply {}, padding = 0
        )
    }

    override fun initData() {
    }

    override fun showData() {

    }

    override fun setStatusColor() {
        StatusUtil.setUseStatusBarColor(this, Color.WHITE)
    }

    override fun setSystemInvadeBlack() {
        StatusUtil.setSystemStatus(this, false, true)
    }
}
